<?php

	const ADMIN = 1;

	const PREG_MOBILE = '#^13[\d]{9}$|^14[\d]{9}$|^15[\d]{9}$|^16[\d]{9}$|^17[\d]{9}$|^18[\d]{9}$|^19[\d]{9}$#';
	const STATUS_NORMAL = 1;
	const STATUS_FREEZE = 0;

	const date_formater = 'Y/m/d';

	const WEEK = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];
	const NON_IMAGE = '/assets/images/placehoder.png';
	const SAFECODE = '1111';

	const ORDER_TYPE_TICKET 	= 1;	//门票订单
	const ORDER_TYPE_BAR 		= 2;	//吧台订单
	const ORDER_TYPE_WEIXIN 	= 3;	//微信订单	
	const ORDER_TYPE_DISC 		= 6;	//碟片订单
	const ORDER_TYPE_PAINT 		= 7;	//字画订单
	const ORDER_TYPE_SONG	 	= 8;	//点歌订单
	const ORDER_TYPE_CHARGE	 	= 9;	//充值订单

	/**
	 * 订单详情状态常量
	 * 1:已售/2:预定/3:改签/9:退票
	 */
	const STATUS_ITEM_SALE 		= 1;		
	const STATUS_ITEM_BOOKING 	= 2;	
	const STATUS_ITEM_CHANGE	= 3;
	const STATUS_ITEM_REFUND	= 9;

	/**
	 * 支付方式常量
	 * 1:现金/2:银行卡/3:会员卡/4:微信/5:支付宝/6:改签单/8:签单/9:挂账
	 */
	const PAYMENT_TYPE_CASH = 1;
	const PAYMENT_TYPE_BANK = 2;
	const PAYMENT_TYPE_MEMBER = 3;
	const PAYMENT_TYPE_WEIXIN = 4;
	const PAYMENT_TYPE_ALIPAY = 5;
	const PAYMENT_TYPE_CHANGE = 6;
	const PAYMENT_TYPE_FREES = 8;
	const PAYMENT_TYPE_SIGNS = 9;

	/**
	 * 交易记录类型常量
	 * -1:余额转入/0:退票/1:购票/2:消费/9:充值
	 */
	const RECORD_TYPE_INIT 		= -1;
	const RECORD_TYPE_REFUND 	= 0;
	const RECORD_TYPE_SALES 	= 1;		
	const RECORD_TYPE_BAR 		= 2;	//吧台
	const RECORD_TYPE_DISC 		= 6;	//碟片
	const RECORD_TYPE_PAINT 	= 7;	//字画
	const RECORD_TYPE_SONG	 	= 8;	//点歌
	const RECORD_TYPE_DEPOSIT	= 9;

	/**
	 * 业务人员表常量
	 * 1:业务员/2:签单人/3:挂账单位/4:服务员
	 */
	const SALE_TYPE_SALES 	= 1;		
	const SALE_TYPE_FREES 	= 2;	
	const SALE_TYPE_SIGNS	= 3;
	const SALE_TYPE_WAITER	= 4;
	
	/*
		1:借/0:贷
	 */
	const FLAG_DEBIT 		= 1;
	const FLAG_CREDIT		= 0;

	const DEFAULT_PASSWORD  = '123456';

	const DEFAULT_SHOW = '中国·琴岛之夜';

	//消费型商品(用于扣卡)
	const WARE_DEDUCT = 1;

?>